package com.mg.smarttask.client;

import java.util.Date;

import com.google.gwt.user.client.rpc.IsSerializable;

public class User  implements IsSerializable{
	private static final long serialVersionUID = 1L;
	//Champs
	private String nom;
	private String prenom;
	private String username;
	private String passWord;
	private String eMail;
	private String cp;
	private Date registerDate;
	private long id = 0;
	//Constructors
	
	public User(){
		registerDate = new Date();
	}
	
	public User(String username, String nom, String prenom, String passWord, String eMail, String cp){
		this.username = username;
		this.nom = nom;
		this.prenom = prenom;
		this.passWord = passWord;
		this.eMail = eMail;
		this.cp = cp;
		registerDate = new Date();
	}
	public User(String username, String nom, String prenom, String passWord, String eMail, String cp, Date registerDate,
			long id){
		this.nom = nom;
		this.username = username;
		this.prenom = prenom;
		this.passWord = passWord;
		this.eMail = eMail;
		this.cp = cp;
		this.registerDate = new Date();
		this.id = id;
	}
	//Getters and setters
	public void setUsername(String username){
		this.username = username;
	}
	public void setNom(String nom){
		this.nom = nom;
	}
	public void setPrenom(String prenom){
		this.prenom = prenom;
	}
	public void setPassWord(String passWord){
		this.passWord = passWord;
	}
	public void setCp(String cp){
		this.cp = cp;
	}
	public void setRegisterDate(Date registerDate ){
		this.registerDate = registerDate;
	}
	public void setEMail(String eMail){
		this.eMail = eMail;
	}
	public void setId(long id ){
		this.id=id;
	}
	
	public String getNom(){
		return nom;
	}
	public String getUsername(){
		return username;
	}
	public String getPrenom(){
		return prenom;
	}
	public String getPassWord(){
		return passWord;
	}
	public String getCp(){
		 return cp;
	}
	public String getEMail(){
		 return eMail;
	}
	public Date getRegisterDate(){
		return registerDate;
	}
	public long getId(){
		return id;
	}
	
}
